-- GENERATED SPELL FOR [Occulus] --


function spell0_8196(pUnit, Event) --@Arcane Blast,n/a--
pUnit:FullCastSpellOnTarget(10833,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8196', 526, 1)
end

function spell1_8196(pUnit, Event) --@Sand Breath,n/a--
pUnit:FullCastSpellOnTarget(20717,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8196', 12000, 1)
end

function spell2_8196(pUnit, Event) --@Swoop,n/a--
pUnit:FullCastSpellOnTarget(18144,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8196', 2265, 1)
end

function Sorts_8196(pUnit, Event)
local choix_sorts_8196 = math.random(0, 2)
if choix_sorts_8196 == 0 then
pUnit:RegisterEvent('spell0_8196', 1, 1)
end
if choix_sorts_8196 == 1 then
pUnit:RegisterEvent('spell1_8196', 1, 1)
end
if choix_sorts_8196 == 2 then
pUnit:RegisterEvent('spell2_8196', 1, 1)
end
end

function mob8196_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8196', math.random(1500, 3000), 1)
end

function mob8196_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8196_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8196_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8196, 1, 'mob8196_Action')
RegisterUnitEvent(8196, 2, 'mob8196_Leave')
RegisterUnitEvent(8196, 3, 'mob8196_Kill')
RegisterUnitEvent(8196, 4, 'mob8196_Die')
